<!DOCTYPE html>
<html xmlns:th="www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<meta name="keywords" content="旧书,二手书,二手教材,旧教材,校园书籍,校园旧书，旧书网">
<meta name="description" content="买卖二手书，就上旧书街">
<meta name="language" content="zh">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" type="text/css" href="res/form.css">
<link rel="stylesheet" type="text/css" href="res/pager.css">
<link rel="stylesheet" type="text/css" href="res/ubm_basic.css">
<link rel="shortcut icon"
	href="http://cdnfile.jiushujie.com/images/ubm.ico" type="image/x-icon">

<title>买卖二手书,就上旧书街</title>
</head>
<body>
<div th:replace="index::div#header"></div>
<div id="app">
	<div class="main_middle">
		<div id="main_content" class="center_980">
			<div class="content_left">
				<div class="border_white align_center padding_10">
					<div
						style="font-size: 30px; font-weight: bold; color: rgb(167, 167, 167);">已有旧书街账号?</div>
					<br> <input class="button" name="yt0" type="button"
						value="立即登录">
				</div>
				<div style="margin-top: 20px;">
					<div class="side_block">
						<div class="title">最多人关注</div>
						<div class="separate"></div>
						<div class="side_user_list">
							<ul>
								<li><a target="_blank" href="/user/540305"><img
										src="http://cdn.shujie.me/user/2020/08/10/23/540305_n1dab5l6dee972hc.jpg!middle"
										title="旧书街客服 ♂ 北京交通大学"></a></li>
								<li><a target="_blank" href="/user/1730678"><img
										src="http://cdn.shujie.me/user/2014/03/21/4949898217_1395410353.jpg!middle"
										title="旧书街官方活动 ♂ 北京邮电大学"></a></li>
								<li><a target="_blank" href="/user/15624945"><img
										src="http://cdn.shujie.me/user/2016/07/19/9819130012_1468891330.jpg!middle"
										title="小豆腐啊 ♀ 山东师范大学"></a></li>
								<li><a target="_blank" href="/user/15768037"><img
										src="http://cdn.shujie.me/user/2017/03/18/8701011384_1489841601.jpg!middle"
										title="醉三年 ♂ 河北交通职业技术学院"></a></li>
								<li><a target="_blank" href="/user/15853618"><img
										src="http://cdn.shujie.me/user/2016/08/11/8767971901_1470919411.jpg!middle"
										title="怪盗 ♀ 清华大学"></a></li>
								<li><a target="_blank" href="/user/16605959"><img
										src="http://cdn.shujie.me/user/2016/11/24/0091191133_1479986351.jpg!middle"
										title="西施书屋 ♀ 宁波工程学院"></a></li>
								<li><a target="_blank" href="/user/16638354"><img
										src="http://cdn.shujie.me/user/2016/12/01/7468920359_1480572497.jpg!middle"
										title="蒲公英TM ♂ 河北师范大学"></a></li>
								<li><a target="_blank" href="/user/16982378"><img
										src="http://cdn.shujie.me/user/2017/08/31/8692929230_1504180972.jpg!middle"
										title="上游 ♂ 哈尔滨工程技术职业学院"></a></li>
								<li><a target="_blank" href="/user/17931502"><img
										src="http://cdn.shujie.me/user/2017/07/17/2303436157_1500259991.jpg!middle"
										title="吉光片羽 ♂ 河南财经政法大学"></a></li>
								<li><a target="_blank" href="/user/19167800"><img
										src="http://cdn.shujie.me/user/2018/11/07/6630286866_1541560291.jpg!middle"
										title="卖图书的女汉纸 ♂ 南京大学"></a></li>
								<li><a target="_blank" href="/user/22333097"><img
										src="http://cdn.shujie.me/user/2019/09/15/13/22333097_6eygylayxuykgex4.jpg!middle"
										title="sky78 ♂ 北京大学"></a></li>
								<li><a target="_blank" href="/user/22476232"><img
										src="http://cdn.shujie.me/user/2019/07/04/05/22476232_nn68l1csye5f9nwd.jpg!middle"
										title="清水精品书屋 ♂ 延边大学"></a></li>
							</ul>
						</div>
						<div class="clearfloat"></div>
					</div>
				</div>
			</div>
			<div class="content_right">
				<div class="form border_white padding_10">
					<div class="page_title">新用户注册</div>
					<div style="padding-left: 20px;">请注意，注册资料除密码外，提交后不能再修改哦!</div>
					<form id="user-regist-form" action="/regist" method="post">
						<input type="hidden"
							value="X0J2bzJPTlJDNnVKR1VlM2MyZGxSM3kwdk5RdnlQZVBZ3-XQ36kulkbowelmV8XT2E7ueyPvc9Wu5p6UlRqdvA=="
							name="YII_CSRF_TOKEN">
						<table class="ubm_input">
							<tbody>
								<tr>
									<td><label for="UserRegist_cellphone" class="required">手机号
											<span class="required">*</span>
									</label></td>
									<td><input maxlength="15" class="ubm_textinput"
										name="UserRegist[cellphone]" id="UserRegist_cellphone"
										type="text" v-model="phone"></td>
									<td><div id="UserRegist_cellphoneTip"></div></td>
								</tr>
								<tr>
									<td><label for="UserRegist_validateCode" class="required">手机验证码
											<span class="required">*</span>
									</label></td>
									<td><input maxlength="6" class="ubm_textinput"
										style="width: 90px;" name="UserRegist[validateCode]"
										id="UserRegist_validateCode" type="text" v-model="yzm"><input
										type="button" onclick="showImgVerifyCodeDlg();"
										id="send_sms_btn" style="width: 140px;" class="button"
										value="发送手机验证码"></td>
									<td><div id="UserRegist_validateCodeTip"></div></td>
								</tr>
								<tr>
									<td><label for="UserRegist_password" class="required">密码
											<span class="required">*</span>
									</label></td>
									<td><input maxlength="32" class="input_public"
										name="UserRegist[password]" id="UserRegist_password"
										type="text" v-model="pwd"></td>
									<td><div id="UserRegist_passwordTip" class="onShow"
											style="margin: 0px; padding: 0px; background: transparent;"></div></td>
								</tr>
								<tr>
									<td><label for="UserRegist_school_name" class="required">学校
											<span class="required">*</span>
									</label></td>
									<td><input is_school_id="1" name="UserRegist[school_id]"
										id="UserRegist_school_id" type="hidden"><input
										class="input_public"
										style="cursor: text; color: rgb(153, 153, 153);" is_school_name="1"

										name="UserRegist[school_name]" id="UserRegist_school_name"
										type="text" v-model="school"></td>
									<td><div id="UserRegist_school_nameTip" class="onShow"
											style="margin: 0px; padding: 0px; background: transparent;"></div></td>
								</tr>
								<tr>
									<td><label for="UserRegist_nickname" class="required">昵称
											<span class="required">*</span>
									</label></td>
									<td><input maxlength="25" class="input_public"
										name="UserRegist[nickname]" id="UserRegist_nickname"
										type="text" style="color: rgb(153, 153, 153);" v-model="name"></td>
									<td><div id="UserRegist_nicknameTip" class="onShow"
											style="margin: 0px; padding: 0px; background: transparent;"></div></td>
								</tr>
								<tr>
									<td><label for="UserRegist_gender" class="required">性别
											<span class="required">*</span>
									</label></td>
									<td><select class="ubm_textinput"
										name="UserRegist[gender]" id="UserRegist_gender" v-model="sex">
											<option value="" selected="selected">-- 请选择 --</option>
											<option value="男生">男生</option>
											<option value="女生">女生</option>
									</select></td>
									<td><div id="UserRegist_genderTip" class="onShow"
											style="margin: 0px; padding: 0px; background: transparent;"></div></td>
								</tr>
								<tr>
									<td></td>
									<td><input id="regist_accept" value="1" checked="checked"
										type="checkbox"> &nbsp;接受旧书街&nbsp;<a target="_blank"
										href="/site/term">服务条款</a></td>
									<td></td>
								</tr>
							</tbody>
						</table>
						<div class="margin_left_134">
							<input id="submit_button" class="button" type="submit" name="yt1"
								   @click.prevent="reg"	value="提交注册">
						</div>
					</form>
				</div>
			</div>
			<div class="clearfloat"></div>

			<style type="text/css">
div#img_verify table.ubm_input td {
	text-align: center;
	width: 400px;
}
</style>

		</div>
	</div>
</div>
<script>
	var rv = new Vue({
		el: "#app",
		data:{
			phone:"",
			yzm:"",
			pwd:"",
			school:"",
			name:"",
			sex:"",
			head_img:"http://cdn.shujie.me/user/default.jpg",
		},
		methods:{
			reg(){
				let  params=new URLSearchParams();
				params.append("phone",this.phone);
				params.append("pwd",hex_md5(this.pwd));
				params.append("school",this.school);
				params.append("account",this.name);
				params.append("gender",this.sex);
				params.append("headImg",this.head_img);
				axios.post("jsj-user/jiushujie/jsjUser/register",params).then(res=>{
					alert(res.data.msg);
					if (res.data.code){
							location.href="login.htm";
						;
					}

				})
			}
		}
	})
</script>
	<div style="border-bottom: 1px solid rgb(255,255,255);"></div>
	<div style="position: fixed; top: 122px; right: 20px;">
		<img style="width: 120px; margin-bottom: 10px;"
			src="res/ios_download.jpg"><br> <img
			style="width: 120px; margin-bottom: 10px;"
			src="res/android_download.jpg">
	</div>
	<div class="clearfloat"></div>
	<div th:replace="index::div.bottom"></div>
	<h1 class="jiushujie_slogan">买卖二手书，就上旧书街。旧书街二手书交易网-您身边的旧书网站</h1>
</body>
</html>